#include "Assets.h"
#include "Logger.h"

ITexture* Assets::background = NULL;
extern IVideoDriver * driver;
extern Logger* logger;

Assets::Assets()
{
}


Assets::~Assets()
{
}

void Assets::PrintFullPath(char * partialPath)
{
	char full[_MAX_PATH];
	if (_fullpath(full, partialPath, _MAX_PATH) != NULL)
	{
		printf("Texture: %s could not be loaded\n", full);
	}

	return;
}

bool Assets::loadTextures()
{
	background = driver->getTexture("resources/background/background.jpg");
	if (background == NULL)
	{
		PrintFullPath("resources/background/background.jpg");
		return false;
	}
	else
	{
		logger->info("Background succesfully loaded");
	}

	return true;
}

